﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Taobao.Top.Api.Request
{
    public class FenXiaoAddProductRequst:ITopRequest
    {
        #region Ctor

        public FenXiaoAddProductRequst()
        { 
        }

        #endregion

        #region Properties

        public string Name
        {
            get;
            set;
        }

        public int ProductCatID
        {
            get;
            set;
        }

        public string StandardPrice
        {
            get;
            set;
        }

        public string CostPrice
        {
            get;
            set;
        }

        public string RetailPriceLow
        {
            get;
            set;
        }

        public string RetailPriceHigh
        {
            get;
            set;
        }

        public int CategoryID
        {
            get;
            set;
        }

        public string OuterID
        {
            get;
            set;
        }

        public int Quantity
        {
            get;
            set;
        }

        public int AlertNumber
        {
            get;
            set;
        }

        public string Desc
        {
            get;
            set;
        }

        public string Province
        {
            get;
            set;
        }

        public string City
        {
            get;
            set;
        }

        public string PostageType
        {
            get;
            set;
        }

        public long? PostageID
        {
            get;
            set;
        }

        public string PostageOrdinary
        {
            get;
            set;
        }

        public string PostageFast
        {
            get;
            set;
        }

        public string PostageEMS
        {
            get;
            set;
        }

        public bool HaveInvoice
        {
            get;
            set;
        }

        public bool HaveGuarantee
        {
            get;
            set;
        }

        #endregion

        #region ITopRequest Members

        public string GetApiName()
        {
            return "taobao.fenxiao.product.add";
        }

        public IDictionary<string, string> GetParameters()
        {
            TopDictionary paramDict = new TopDictionary();
            paramDict.Add("name", Name);
            paramDict.Add("productcat_id", ProductCatID);
            paramDict.Add("standard_price", StandardPrice);
            paramDict.Add("cost_price", CostPrice);
            paramDict.Add("retail_price_low", RetailPriceLow);
            paramDict.Add("retail_price_high", RetailPriceHigh);
            paramDict.Add("category_id", CategoryID);
            paramDict.Add("outer_id", OuterID);
            paramDict.Add("quantity", Quantity);
            paramDict.Add("alarm_number", AlertNumber);
            paramDict.Add("desc", Desc);
            paramDict.Add("prov",Province);
            paramDict.Add("city",City);
            paramDict.Add("postage_type", PostageType);
            paramDict.Add("postage_id", PostageID);
            paramDict.Add("postage_ordinary",PostageOrdinary);
            paramDict.Add("postage_fast",PostageFast);
            paramDict.Add("postage_ems",PostageEMS);
            paramDict.Add("have_invoice",HaveInvoice);
            paramDict.Add("have_guarantee", HaveGuarantee);
            return paramDict;
        }

        #endregion
    }
}
